package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.pojo.system.SysRole;
import com.atguigu.spzx.model.pojo.system.SysUserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysUserRoleService extends IService<SysUserRole> {
    List<SysRole> getRolesByUserId(Long id);

    /*
     * @description: 分配用户角色
     **/
    boolean assignUserRole(Long userId, List<Long> roleIds);
}
